package com.pan.kang.common;

import lombok.Data;

@Data
public class Response<T> {

    private T data;

    private String message;

    private Integer code;

    public Response(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public Response(T data) {
        this.message = "请求成功";
        this.code = 200;
        this.data = data;
    }
}
